home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
il gioco del Kamasutra
/
Milo Manara Kamasutra.iso
/
mac
/
DATA
/
ParteIII
/
GameI
/
Spada.dir
/
00032_Script_32
< prev
next >
Wrap
Text File
|
1997-11-24
|
3KB
|
86 lines
on mouseEnter
set the cursor of sprite 35 to [the number of cast "MouseOpen", the number of cast "MouseOpenMask"]
end mouseEnter
on mouseleave
set the visible of sprite 35 to 0
end mouseleave
on mousedown
global oldloc, x0, y0
puppetsprite 35, true
set the cursor of sprite 35 to [the number of cast "MouseClose", the number of cast "MouseCloseMask"]
set x0 = the loch of sprite 35
set y0 = the locv of sprite 35
repeat while the stilldown
set the loc of sprite 35 to point(the mouseH,the mouseV)
updatestage
end repeat
Puppetsound 3,"Click2"
end mousedown
on mouseUp
global oldloc, x0, y0, x1, y2, passo
global oldloc, UomoTesto1, UomoTesto2, UomoTesto3, UomoCard1, UomoCard2, UomoCard3
global Coppia1, Coppia2, Coppia3, Test1, Test2, Test3
set the cursor of sprite 35 to [the number of cast "MouseOpen", the number of cast "MouseOpenMask"]
if (Test1 = 0) and (inside(the loc of sprite 35, the rect of sprite 14 ) = 1) then
set the loc of sprite 35 to oldloc
puppetsprite 35, 0
set the membernum of sprite 21 to (the membernum of sprite 35)
set the loc of sprite 21 to point(85, 361)
set UomoCard1 = the name of member (the membernum of sprite 35)
set the text of member 17 to "Uomo " & (the name of member (the membernum of sprite 35))
put the text of member 17 into UomoTesto1
updatestage
else if (Test2 = 0) and (inside(the loc of sprite 35, the rect of sprite 15 ) = 1) then
set the loc of sprite 35 to oldloc
puppetsprite 35, 0
set the membernum of sprite 22 to (the membernum of sprite 35)
set UomoCard2 = the name of member (the membernum of sprite 35)
set the loc of sprite 22 to point(275, 361)
set the text of member 18 to "Uomo " & (the name of member (the membernum of sprite 35))
put the text of member 18 into UomoTesto2
updatestage
else if (Test3 = 0) and (inside(the loc of sprite 35, the rect of sprite 16 ) = 1) then
set the loc of sprite 35 to oldloc
puppetsprite 35, 0
set the membernum of sprite 23 to (the membernum of sprite 35)
set the loc of sprite 23 to point(465, 361)
set UomoCard3 = the name of member (the membernum of sprite 35)
set the text of member 19 to "Uomo " & (the name of member (the membernum of sprite 35))
put the text of member 19 into UomoTesto3
updatestage
else
put the loch of sprite 35 into x1
put the locv of sprite 35 into y1
set passo = integer(abs(x1-x0))
if x1 <> x0 then
if x1 > x0 then
repeat with n = 20 down to 1
set the loch of sprite 35 = (x1 - passo/n)
set the locv of sprite 35 = ((y1-y0)*(x1 - passo/n) + (x1*y0 -x0*y1))/(x1-x0)
updatestage
end repeat
else
repeat with n = 20 down to 1
set the loch of sprite 35 = (x1 + passo/n)
set the locv of sprite 35 = ((y1-y0)*(x1 + passo/n) + (x1*y0 -x0*y1))/(x1-x0)
updatestage
end repeat
end if
end if
set the loch of sprite 35 = x0
set the locv of sprite 35 = y0
updatestage
end if
end mouseUp